
import axios from "~/axios";

// 获取菜单列表
export function getMenusList() {
    return axios.get(`/system/menulist/`)
}

// 新增菜单
export function postMenus(data) {
    return axios.post(`/system/menulist/`, data)
}
// 修改菜单
export function patchMenus(id, data) {
    return axios.patch(`/system/menulist/${id}/`, data)
}
// 修改菜单激活状态
export function patchMenusStatus(id, status) {
    return axios.patch(`/system/menulist/${id}/`, { status })
}
// 删除菜单
export function deleteMenus(id) {
    return axios.delete(`/system/menulist/${id}/`)
}